package model;

import java.io.File;
import java.util.List;

public class FileModel {
    private String ip;
    private File file;
    private Long size;
    private String time;
   public FileModel(String ip,File file){
        this.ip=ip;
        this.file=file;
        size=file.length()/1024/1024;
    }
    public FileModel(File file){
       this.file=file;
       size=file.length()/1024/1024;
   }
    public String getIp() {
        return ip;
    }

    public File getFile() {
        return file;
    }

    public Long getSize() {
        return size;
    }

    public String getTime() {
        return time;
    }

    public void setSize(Long size) {
        this.size = size;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
